package cn.edu.njuit.children.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @TableName sys_vaccine
 */
@TableName(value ="sys_vaccine")
@Data
public class Vaccine implements Serializable {
    /**
     * 编码
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 疫苗名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 接种原因
     */
    @TableField(value = "reason")
    private String reason;

    /**
     * 接种反应
     */
    @TableField(value = "reaction")
    private String reaction;

    /**
     * 预防病
     */
    @TableField(value = "prevent_disease")
    private Date preventDisease;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
